package com.liefox.service;

import com.liefox.mapper.UserMapper;
import com.liefox.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author zjh
 * @Date 2021/4/18 下午 5:27
 **/

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper userMapper;


    @Override
    public int Signup(User user) {
        return userMapper.Signup(user);
    }

    @Override
    public User Signin(User user) {
        return userMapper.Signin(user);
    }

    @Override
    public int updateUserInfo(User user) {
        return userMapper.updateUserInfo(user);
    }

    @Override
    public int upPw(String Email, String Password) {
        return userMapper.upPw(Email,Password);
    }

    @Override
    public List<User> getUser() {
        return userMapper.getUser();
    }

    @Override
    public User getUserInfo(String Email) {
        return userMapper.getUserInfo(Email);
    }

    @Override
    public int recPw(String Email, String Password) {
        return userMapper.recPw(Email,Password);
    }

    @Override
    public String getUserName(String Email, String Password) {
        return userMapper.getUserName(Email,Password);
    }
}
